<!doctype html>
<html lang="zh-CN" xmlns:th="http://www.thymeleaf.org">
<head>
    <meta charset="UTF-8">
    <link rel="stylesheet" th:href="@{/moban/css/index.css}"/>
    <link rel="stylesheet" th:href="@{/moban/css/table.css}"/>
	<script th:src="@{/moban/js/main.js}"></script>
	<title>我的留言</title>
</head>
<style>
	.help-main p {
		line-height: 50px;
	}
</style>
<body >

<span th:replace="/common/head2 :: header"></span>

<div class="help-wrap">
	<div class="container clearfix">
		<div class="bread">当前位置：
			<a href="#">首页</a> >
			<a href="#">留言管理</a> >
			<a href="#">我的留言</a>
		</div>
		<span th:replace="/common/userinfo :: userer"></span>
		<div class="help-r fr">
			<div class="help-item-title">留言板</div>
			<div class="help-main">
				<table class="table table-hover">
				<thead>
					<tr >
			        <th>留言内容</th>
			        <th>留言时间</th>
			        <th>管理员回复</th>
			        <th>回复人</th>
			        <th>回复时间</th>
			        <th>操作</th>
			      </tr>
			      <tr>
			        
			      <tr th:each="message,messageStat : ${messageList}">
				      <td th:text="${message.content}"></td>
				      <td th:text="${#calendars.format(message.createDate,'yyyy-MM-dd')}"></td>
				      <td th:text="${message.answer}"></td>
				      <td th:text="${message.admin_name}"></td>
				      <td>
				      	<span th:if="${message.answerDate != null}" th:text="${#calendars.format(message.answerDate,'yyyy-MM-dd')}"></span>
				      </td>
				      <td>
				      	<a th:href="@{'/message/delMsg?id='+${message.id}}">删除</a>
				      </td>
			        </tr>
				</tbody>
			</table>
			
			</div><div class="help-item-title">我要留言</div>
			<div class="help-main">
				<form action="/message/message-save" method="post">
					<p><textarea rows="4" cols="150" name="content"></textarea></p>
					<input style="float: right;" class="save" type="submit" value="留言"/>
				</form>
			</div>
		</div>
	</div>
</div>

<span th:replace="/common/foot :: footer"></span>

</body>
</html>